<include file="Public/header" title="{$category.seo_title}" keywords="{$category.seo_keywords}" description="{$category.seo_description}" />

<!-- MAIN -->
<main class="content-wrapper page-blog-list">
	<section class="content-header" style="background-image: url(__TMPL__Public/assets/images/home-bg1.jpg);">
		<div class="container">
			<div class="row">
				<div class="col-sm-12">
					<h1>新闻资讯</h1>
					<p>Find blogs you like.</p>
				</div>
			</div>
		</div>
	</section>
	
	<section class="content-body alt">
		<div class="container">
			<div class="row">
				<div class="col-sm-9">
					<div class="post-list white-wrapper">
						<content id="vo" table-name="post" where="$where" order="id desc" with-page="true" page-size="10" page-tpl="{first}{prev}{liststart}{list}{listend}{next}{last}">
						<article class="post">
							<div class="row">
								<div class="col-sm-4 col-xs-4">
									<div class="post-img">
										<a class="zoom-img" href="{$vo.url}">
											<if condition="empty($vo.thumb)">
												<img src="__TMPL__Public/assets/images/post/post_thumb.jpg" class="img-responsive" />
											<else />
												<img src="__ROOT__/{$vo.thumb}" class="img-responsive" />
											</if>
										</a>
									</div>
								</div>
								<div class="col-sm-8 col-xs-8">
									<div class="post-header">
										<h3 class="post-title">
											<a href="{$vo.url}">
												{$vo.title}
											</a>
										</h3>
										<div class="post-meta">
											<i class="fa fa-clock-o"></i>&nbsp;<span>{$vo.update_time|strtotime|date='Y-m-d h:i',###}</span>&nbsp;&nbsp;
											<i class="fa fa-user"></i>&nbsp;<span>{$vo.author}</span>&nbsp;&nbsp;
											<i class="fa fa-eye"></i>&nbsp;<span>{$vo.view_count}</span>&nbsp;人浏览
										</div>
									</div>
									<div class="post-body">
										<div class="post-summary">
											<a href="{$vo.url}">
												{$vo.summary|msubstr=0,256}
											</a>
										</div>
									</div>
								</div>
							</div>
						</article>
						</content>
						
						<div class="paginator text-center">
							<ul class="pagination">
								{$pagination}
							</ul>
						</div>
					</div>
				</div>
				
				<div class="col-sm-3">
					<div class="sidebar-item category white-wrapper">
						<h3 class="with-border-bottom p-15">资讯动态</h3>
						<ul>
							<content id="vo" table-name="category" where="pid=$CF_NEWS_CID" order="id desc">
                            <li>
                            	<a href="{$vo.url}" <if condition="$vo['id'] eq $CID">class="active"</if>><i class="fa fa-angle-right"></i>&nbsp;{$vo.name}</a>
                            </li>
                            </content>
                        </ul>
					</div>
					<div class="sidebar-item latest-blog-post white-wrapper">
						<h3 class="with-border-bottom p-15">最新发布</h3>
						<ul class="media-list p-15">
							<content id="vo" table-name="post" where="cid in ($CF_SUB_NEWS_CIDS) and status=1" order="id desc" limit="4">
							<li class="media">
	                            <a class="media-left" href="{$vo.url}">
				            	<if condition="empty($vo['thumb'])"> 
									<img src="__TMPL__Public/assets/images/post/post_thumb.jpg" class="media-object" alt="{$vo.title}" />
								<else />
									<img src="__ROOT__/{$vo.thumb}" class="media-object" alt="{$vo.title}" />
								</if>
	                            </a>
	                            <div class="media-body">
	                                <h5 class="media-heading">
	                                	<a href="{$vo.url}">
	                                		{$vo.title}
	                                	</a>
	                                </h5>
									<p>{$vo.update_time|strtotime|date='Y-m-d h:i',###}</p>
	                            </div>
							</li>
			        		</content>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</section>
</main>
<!-- /MAIN -->

<script type="text/javascript">
(function() {
})();
</script>

<include file="Public/footer" />
